const mongoose = require("mongoose")

const ListSchema = new mongoose.Schema({
    title:{
        type:String,
        require:true
    },
    time:{
        type:Date
    },
    type:{
        type:String,
        enum:[1,-1],
        default:-1
    },
    account:{
        type:Number,
        require:true
    },
    remark:{
        type:String
    }
})

const ListModel = mongoose.model('lists',ListSchema)
//新建一个lists集合

module.exports = ListModel